<template>
  <div class="hello">
    <img @click="returnPage" src="http://p0.qhimg.com/bdm/768_474_0/t019c3458c4ab4d9d65.jpg">
    <!-- <img src="../../assets/dlrb.jpg" class="center-logo" alt=""> -->
    <h1>{{ msg }}</h1>
  </div>
</template>

<script>
export default {
  name: 'Login',
  data () {
    return {
      msg: '欢迎来到我的主页！'
    }
  },
  methods: {
    returnPage(){
      window.history.go(-1);
    }
  },

}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->

<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
.center-logo{
  width: 400px;
  
}
.hello{
  text-align: center;
}
img{
  width: 375px;
  border-radius: 10px;
}
</style>
